//
//  AppsSessionManager.h
//
//  用户信息管理类
//  Created by maple on 14-5-6.
//  Copyright (c) 2014 sinosoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppLocalManager.h"

#define IS_LOGIN @"IS_LOGIN"
#define CURRENT_USER @"CURRENT_USER"
#define CURRENT_PASSWORD @"CURRENT_PASSWORD"
#define CURRENT_MEMBER_ID @"CURRENT_MEMBER_ID"
#define CURRENT_NIBNAME @"CURRENT_NIBNAME"
#define CURRENT_EMAIL @"CURRENT_EMAIL"
#define CURRENT_USER_IMAGE_URLSTR @"CURRENT_USER_IMAGE_URLSTR"
#define CURRNET_PWD  @"CURRNET_PWD"
#define CURRENT_MOBILE @"CURRENT_MOBILE"
#define CURRENT_SEX  @"CURRENT_SEX"
#define CURRENT_PERSONALSTOREID  @"CURRENT_PERSONALSTOREID"

#define CURRENT_TOKEN  @"CURRENT_TOKEN"
#define CURRENT_BALANCE  @"CURRENT_BALANCE"
#define CURRENT_SHOPPING_CART_COUNT  @"CURRENT_SHOPPING_CART_COUNT"  //购物车商品数量
#define IS_LAUNCHED  @"IS_LAUNCHED"    //程序第一次运行

@interface AppSessionManager : NSObject

//初始化
+ (id)sharedManager;
//判断应用是不是首次启动
- (BOOL)isLaunched;
//设置应用是不是首次启动
- (void)setLaunched:(BOOL)launched;
//判断是否有用户登录
- (BOOL)isLogin;
//设置用户登录状态
- (void)setLogin:(BOOL)login;
//设置当前用户名称
- (void)setCurrentUser:(NSString *)currentUser;
//获取当前用户名称
- (NSString *)getCurrentUser;
//设置当前用户的登陆密码
- (void)setCurrentPassword:(NSString *)password;
//获取当前用户的登陆密码
- (NSString *)getCurrentUserPassword;
//设置用户的ID
- (void)setCurrentMemberId:(NSString *)currentMemberId;
//获取用户ID
- (NSString *)getCurrentMemberId;

//设置用户的电话
- (void)setCurrentMobile:(NSString *)mobile;
//获取用户电话
- (NSString *)getCurrentMobile;
//设置用户的性别
- (void)setCurrentSex:(NSNumber *)sex;
//获取用户性别
- (NSNumber *)getCurrentSex;
//设置用户昵称
- (void)setCurrentNibName:(NSString *)nibName;
//获取用户昵称
- (NSString *)getCurrentNibName;
//设置用户的邮箱
- (void)setCurrentEmail:(NSString *)email;
//获取用户邮箱
- (NSString *)getCurrentEmail;
//设置用户头像
- (void)setCurrentUserImageUrlStr:(NSString *)userImageUrlStr;
//获取用户头像
- (NSString *)getCurrentUserImageUrlStr;
//设置用户TOKEN
- (void)setCurrentToken:(NSString *)token;
//获取用户TOKEN
- (NSString *)getCurrentToken;



- (void)setLogin:(NSString *)user memberId:(NSString *)memberId email:(NSString *)email password:(NSString *)password login:(BOOL)login mobile:(NSString *)mobile sex:(NSNumber *)sex nickName:(NSString *)nickName pic:(NSString *)pic;
- (void)setLogin:(NSString *)user memberId:(NSString *)memberId password:(NSString *)password login:(BOOL)login;

- (void)setLogin:(NSString *)user memberId:(NSString *)memberId email:(NSString *)email password:(NSString *)password login:(BOOL)login;

- (void)setLogin:(NSString *)user memberId:(NSString *)memberId login:(BOOL)login;

@end
